#!/usr/bin/env python
# encoding:utf-8

from utils import *

# context.log_level = 'debug'

PASSCODE = 'dGhpc3Bhc3Njb2R'

io = debug('./findme')
# io.b(0x0000000000400BB4)
io.r()
# io = process('python ./loader.py'.split(' ')); io.r()
# io = remote('202.120.7.144', 9994)
# io.sendline('')
io.recvuntil('op:')

io.sendline('3')
io.sendline(PASSCODE)

# payload = cyclic(0xd8)
# payload.replace('daabeaab', )
io.send(cyclic(112))
io.send(cyclic(0xd8))
# io.send(0xd8 / 8 * p64(0x400000))
io.ext_interactive()
